import request from "@/utils/request"

export const getWarehouseAreaListApi = (warehouseId)=>request.get(`/warehouse/area/list?warehouseId=${warehouseId}`)

export const getWarehouseAreaPageApi = (page,pageSize) =>request.get(`/warehouse/area?page=${page}&pageSize=${pageSize}`)

export const addWarehouseAreaApi = (data) => request.post('/warehouse/area', data)

export const updateWarehouseAreaApi = (data) => request.put(`/warehouse/area`, data)

export const deleteWarehouseAreaApi = (id) => request.delete(`/warehouse/area/${id}`)

